package com.ggshily.game.model.ms3d
{
	import flash.utils.ByteArray;
	
	public class Ms3d_vertex
	{
		public var flags : int                        // (byte) SELECTED | SELECTED2 | HIDDEN
		public var vertex : Array = [0.0, 0.0, 0.0]     //
		public var boneId : int;                      // (char) -1 = no bone
		public var referenceCount : int;              // (byte)
		
		public function Ms3d_vertex(bytes : ByteArray)
		{
			if(bytes)
			{
				flags = bytes.readUnsignedByte();
				vertex[0] = bytes.readFloat();
				vertex[1] = bytes.readFloat();
				vertex[2] = bytes.readFloat();
				boneId = bytes.readByte();
				referenceCount  = bytes.readUnsignedByte();
			}
		}
	}
}